package com.hksj.sftcm.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.hksj.common.config.annotation.DS_TAOS;
import com.hksj.sftcm.dto.SftcmDeviceDTO;
import com.hksj.sftcm.vo.SftcmDeviceVO;
import com.hksj.sftcm.vo.SftcmHistoryDeviceVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface SftcmDeviceMapper {

    List<SftcmDeviceVO> querySftcmDeviceByPage(@Param("page") IPage<SftcmDeviceVO> page,@Param("dto") SftcmDeviceDTO dto);

    @DS_TAOS
    List<SftcmHistoryDeviceVO> querySftcmDeviceHistoryByPage(@Param("tableName")String tableName, @Param("dto")SftcmDeviceDTO dto);

    @DS_TAOS
    Long querySftcmDeviceHistoryCount(@Param("tableName")String tableName,@Param("dto") SftcmDeviceDTO dto);

}
